import axios from '@/libs/request.js'

export const QueryScheduleReportStatistic = () => {
  return axios.request({
    url:
    '/api/Bimschedule/QueryScheduleReportStatistic?projectid=06879ca8-766b-448d-9173-b6a80605710e',
    method: 'get'
  })
}

export const GetEbsTypeMaterialTitle = (partName) => {
  if (!partName) {
    return axios.request({
      url:
      '/api/EbsInfoMaterial/GetEbsTypeMaterialTitleByPart?ProjectId=06879ca8-766b-448d-9173-b6a80605710e',
      method: 'get'
    })
  }
  return axios.request({
    url:
    '/api/EbsInfoMaterial/GetEbsTypeMaterialTitleByPart?ProjectId=06879ca8-766b-448d-9173-b6a80605710e&partName=' + partName,
    method: 'get'
  })
}

export const GetStructsListByGongJing = () => {
  return axios.request({
    url:
    '/api/Bimschedule/GetStructsListByGongJing?bridgeid=06879ca8-766b-448d-9173-b6a80605710e',
    method: 'get'
  })
}

export const ReturnEbsStatusDto = () => {
  return axios.request({
    url:
    '/api/ImageProgress/GetReturnEbsStatusDto?ProjectId=06879ca8-766b-448d-9173-b6a80605710e',
    method: 'get'
  })
}

export const GetDatasToList = () => {
  return axios.request({
    url:
    '/api/PanelJson/GetDatasToList?pageSize=20&currentPage=1&ProjectID=06879ca8-766b-448d-9173-b6a80605710e',
    method: 'get'
  })
}

export const GetVideoList = () => {
  return axios.request({
    url:
    '/api/monitor/BhmVideo/GetVideoList?ProjectId=06879ca8-766b-448d-9173-b6a80605710e',
    method: 'get'
  })
}

export const GetEquipmentList = (date) => {
  return axios.request({
    url:
    'http://58.49.74.231:118/api/CMMonitorstatis/GetEquipmentList?ProjectId=06879ca8-766b-448d-9173-b6a80605710e&date='+date,
    method: 'get'
  })
}
export const GetMaterialList = (date) => {
  return axios.request({
    url:
    'http://58.49.74.231:118/api/CMMonitorstatis/GetMaterialList?ProjectId=06879ca8-766b-448d-9173-b6a80605710e&date='+date,
    method: 'get'
  })
}
export const GetYLList = (date) => {
  return axios.request({
    url:
    'http://58.49.74.231:118/api/CMMonitorstatis/GetYLList?ProjectId=06879ca8-766b-448d-9173-b6a80605710e&date='+date,
    method: 'get'
  })
}

